package jtk.project4.fleet.field;

import java.awt.Dimension;

import jtk.project4.fleet.domain.Employee;
import jtk.project4.fleet.domain.Equipment;

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.ComboField;
import nl.coderight.jazz.form.field.NumberField;
import nl.coderight.jazz.form.field.SelectField;
import nl.coderight.jazz.form.field.TextField;
import nl.coderight.jazz.form.field.SpinnerField;


public class EquipmentTiresFrontTiresField extends GroupControl<Equipment>{
	private ComboField <String> sizeField;
	private SpinnerField <String> pressureField;
	
		public EquipmentTiresFrontTiresField(String bindId){
		setTitle("Front Tires");
		setBindID(bindId);
		createFields();
		createLayout();
	}

	private void createFields() {
		// TODO Auto-generated method stub
		sizeField = new ComboField<String>("Tires",null);
		pressureField = new SpinnerField<String>("Tires","Pressure");
		sizeField.setPreferredSize(new Dimension(166,20));
		pressureField.setPreferredSize(new Dimension(166,20));
		
	}
	
	private void createLayout() {
		// TODO Auto-generated method stub
		setLayout(new FormLayout())

		.addLabel("Size")				.addField(sizeField)
		.addRow()
		.addLabel("Pressure")			.addField(pressureField)		
		;	
	}
	

}
